package cn.v2tila.rsosa.management.service;

import cn.v2tila.rsosa.management.entity.UserEntity;
import cn.v2tila.rsosa.management.utils.PageDataResult;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

/**
 * @author v2tila on 18:23 2019/2/22
 */
@Service
public interface UserService {
    UserEntity findByOpenid(String openid);

    UserEntity saveAndFlush(UserEntity userEntity);

    Page<UserEntity> findAll(Example<UserEntity> example, Pageable pageable);

    PageDataResult getUsers(int page, int limit, UserEntity userEntity);
}
